<?php
namespace Modules\Goods\Http\Controllers\Admin;

use Encore\Admin\Facades\Admin;
use Modules\Goods\Entities\Category;

class CategoryService
{ 
  public function selectOptions()
  {
    return function($query) {
      $merchant = Admin::user()->merchant_id;
      return $query->where('merchant_id', $merchant);
    };
  }
}
